﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace System
{
    public static class IntExtend
    {
        public static int ToInt32(this string aString)
        {
            if (int.TryParse(aString, out int result))
            {
                return result;
            }
            return 0;
        }

        public static bool IsNum(this string numString)
        {
            return int.TryParse(numString, out _);
        }
    }
}
